package dth.entity;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.*;
@Entity
@Table(name="dealer")
public class Dealer {
	@Id
	@Column(columnDefinition="int",name="dealer_id")
	private int dealerId;
	@Column(columnDefinition="varchar",name="dealer_name")
	private String dealerName;
	@Column(columnDefinition="text",name="address")
	private String address;
	@Column(columnDefinition="datetime",name="date_insert")
	private Date dateInsert;
	@OneToMany(mappedBy = "ownDealer")
	private List<OrderSetupBox> orderSetupBoxs=new ArrayList<OrderSetupBox>();
	
	public int getDealerId() {
		return dealerId;
	}
	public void setDealerId(int dealerId) {
		this.dealerId = dealerId;
	}
	public String getDealerName() {
		return dealerName;
	}
	public void setDealerName(String dealerName) {
		this.dealerName = dealerName;
	}
	public String getDealerAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Date getDateInsert() {
		return dateInsert;
	}
	public void setDateInsert(Date dateInsert) {
		this.dateInsert = dateInsert;
	}
	public String getAddress() {
		
		return address;
	}
	
	
}
